package ${package.Service};

import ${package.Entity}.${table.entityName};
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
<#if needController>
import ${voPackageValue}.${voName};
import ${pagePackageValue}.${pageName};
import ${formPackageValue}.${formName};
import org.springframework.web.multipart.MultipartFile;
</#if>


/**
 * @Description: ${table.comment!}服务
 * @Author: ${author}
 * @CreateDate: ${date}
 * @Version: 1.0.0
 * @Company: ${company}
 */
public interface ${className}Service extends IService<${table.entityName}> {

    <#if needController>
    Page<${voName}> getPage(${pageName} page);

    ${voName} getDetail(Integer id);

    boolean addEntity(${formName} form);

    boolean editEntity(${formName} form);

    <#if needImportExport>
    boolean importExcel(MultipartFile file);

    byte[] exportExcel(${pageName} page);
    </#if>
    </#if>
}
